home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / scripts / sky.shader < prev    next >
Encoding:
Text File  |  2000-11-20  |  6.1 KB  |  344 lines

  1. // q3map_sun <red> <green> <blue> <intensity> <degrees> <elevation>
  2. // color will be normalized, so it doesn't matter what range you use
  3. // intensity falls off with angle but not distance 100 is a fairly bright sun
  4. // degree of 0 = from the east, 90 = north, etc.  altitude of 0 = sunrise/set, 90 = noon
  5.  
  6. textures/common/gardencaulk
  7. {
  8. //    q3map_sun    0 0 1 2500    45 78
  9.     surfaceparm nolightmap
  10.     surfaceparm sky
  11. //    qer_trans 0.500000
  12.     qer_editorimage textures/common/caulk.tga
  13.     {
  14.         map $whiteimage
  15.         blendFunc GL_ZERO GL_ONE
  16. //        depthWrite
  17.     }
  18. }
  19.  
  20. textures/sky/tearssky
  21. {
  22.     q3map_sun    0.4 0.4 0.4 300 225 65
  23.     q3map_surfacelight 350
  24.     surfaceparm noimpact
  25.     surfaceparm nolightmap
  26.     //surfaceparm sky
  27.     qer_editorimage textures/sky/test1.tga
  28.     //skyparms - 512 -
  29.     {
  30.         map $whiteimage
  31.         blendFunc GL_ZERO GL_ONE        
  32.     }
  33. }
  34.  
  35. textures/sky/km_lightportal
  36. {
  37.     portalSky
  38.     surfaceColor .500000 .500000 0.600000
  39.     surfaceparm noimpact
  40.     surfaceparm nolightmap
  41.     surfaceparm sky
  42.     //q3map_surfacelight 384
  43.     //q3map_sun    .5 .5 .6 768    45 78
  44.     qer_editorimage textures/common/sky.tga
  45.     {
  46.         map $whiteimage
  47.         blendFunc GL_ZERO GL_ONE
  48.         depthWrite
  49.     }
  50. }
  51.  
  52. textures/sky/km_testsky
  53. {
  54.     portalSky
  55.     surfaceparm nolightmap
  56.     surfaceparm sky
  57.     surfaceparm noimpact
  58.     
  59.     qer_editorimage textures/common/sky.tga
  60.     {
  61.         map $whiteimage
  62.         blendFunc GL_ZERO GL_ONE
  63.         depthWrite
  64.     }
  65. }
  66.  
  67. textures/sky/hedge3test
  68. {
  69.     portalSky
  70.     surfaceparm nolightmap
  71.     surfaceparm sky
  72.     surfaceparm noimpact
  73.     
  74.     qer_editorimage textures/sky/hedge3test.tga
  75.     {
  76.         map $whiteimage
  77.         blendFunc GL_ZERO GL_ONE
  78.         depthWrite
  79.     }
  80. }
  81.  
  82. textures/sky/portal_sky
  83. {
  84. //    q3map_surfacelight 100        
  85.  
  86.     portalSky
  87.     surfaceparm noimpact
  88.     surfaceparm nolightmap
  89.     surfaceparm sky
  90.     
  91.     qer_editorimage textures/sky/portal_sky.tga
  92.     {
  93.         map $whiteimage
  94.         blendFunc GL_ZERO GL_ONE
  95.         depthWrite
  96.     }
  97. }
  98.  
  99. textures/sky/tempsky1
  100. {
  101.     surfaceparm noimpact
  102.     surfaceparm nolightmap
  103.     surfaceparm sky
  104.  
  105.     qer_editorimage textures/sky/test1.tga
  106.  
  107.     q3map_sun    0.4 0.4 .4 1000    75 25
  108.     q3map_surfacelight 100
  109. //    cloudparms 512 full
  110.     skyparms - 512 -
  111.     
  112.     {
  113.         map textures/sky/test1.tga
  114.         tcMod scale 3 2
  115.         depthWrite
  116.     }
  117.     {
  118.         map textures/sky/test_overlay.tga
  119.         blendFunc GL_ONE GL_ONE
  120.         tcMod scroll 0.03 0.03
  121.         tcMod scale 3 3
  122.     }
  123. }
  124.  
  125.  
  126. textures/sky/roguesky1
  127. {
  128.     surfaceparm noimpact
  129.     surfaceparm nolightmap
  130.     surfaceparm sky
  131.     
  132.     qer_editorimage textures/sky/test1.tga
  133.     
  134. //    q3map_sun    .56 .4 .33 2500 135 70
  135. //    q3map_surfacelight 1000
  136. //    cloudparms 512 full
  137.     skyparms - 512 -
  138.     
  139.     {
  140.         map textures/sky/test1.tga
  141.         tcMod scale 3 2
  142.         depthWrite
  143.     }
  144.     {
  145.         map textures/sky/test_overlay.tga
  146.         blendFunc GL_ONE GL_ONE
  147.         tcMod scroll 0.03 0.03
  148.         tcMod scale 3 3
  149.     }
  150. }
  151.  
  152. textures/sky/queen_portalsky
  153. {
  154.     surfaceparm noimpact
  155.     surfaceparm nolightmap
  156.     surfaceparm sky
  157.     portalSky    
  158.  
  159.     qer_editorimage textures/sky/queen_test1.tga
  160.     
  161.     skyparms - 512 -
  162.     
  163.     {
  164.         map textures/sky/queen_test1.tga
  165.         tcMod scale 3 2
  166.         depthWrite
  167.     }
  168.     {
  169.         map textures/sky/queen_overlay.tga
  170.         blendFunc GL_ONE GL_ONE
  171.         tcMod scroll 0.03 0.03
  172.         tcMod scale 3 3
  173.     }
  174. }
  175.  
  176. textures/sky/queen_sky1
  177. {
  178.     q3map_surfacelight 300
  179.  
  180.  
  181.     surfaceparm noimpact
  182.     surfaceparm nolightmap
  183.     surfaceparm sky
  184.     
  185.     qer_editorimage textures/sky/queen_test1.tga
  186.     
  187.     skyparms - 512 -
  188.     
  189.     {
  190.         map textures/sky/queen_test1.tga
  191.         tcMod scale 3 2
  192.         depthWrite
  193.     }
  194.     {
  195.         map textures/sky/queen_overlay.tga
  196.         blendFunc GL_ONE GL_ONE
  197.         tcMod scroll 0.03 0.03
  198.         tcMod scale 3 3
  199.     }
  200. }
  201.  
  202. textures/sky/queen_skyjj
  203. {
  204.     surfaceparm noimpact
  205.     surfaceparm nolightmap
  206.     surfaceparm sky
  207.     
  208.     qer_editorimage textures/sky/queen_testjj.tga
  209.     
  210.     skyparms - 512 -
  211.     
  212.     {
  213.         map textures/sky/queen_testjj.tga
  214.         tcMod scale 3 2
  215.         depthWrite
  216.     }
  217.     {
  218.         map textures/sky/queen_overlayjj.tga
  219.         blendFunc GL_ONE GL_ONE
  220.         tcMod scroll 0.03 0.03
  221.         tcMod scale 3 3
  222.     }
  223. }
  224.  
  225. // sunlight - PGM - used for volumetric lighting effects in the world.
  226. // additive blending, max level 64
  227. textures/sky/sunlight01
  228. {
  229.     surfaceparm nolightmap
  230.     surfaceparm nonsolid
  231.     surfaceparm trans
  232.     surfaceparm detail
  233.     qer_editorimage textures/effects/sunlight02.tga
  234.     qer_trans 0.5
  235.     {
  236.         map textures/effects/sunlight02.tga
  237.         blendFunc GL_ONE GL_ONE
  238.     }
  239. }
  240.  
  241. // sunlight - PGM - used for volumetric lighting effects in the world.
  242. // additive blending, max level 55
  243. textures/sky/sunlight02
  244. {
  245.     surfaceparm nolightmap
  246.     surfaceparm nonsolid
  247.     surfaceparm trans
  248.     surfaceparm detail
  249.     qer_editorimage textures/effects/sunlight03.tga
  250.     qer_trans 0.5
  251.     {
  252.         map textures/effects/sunlight03.tga
  253.         blendFunc GL_ONE GL_ONE
  254.     }
  255. }
  256.  
  257. // sunlight - PGM - used for volumetric lighting effects in the world.
  258. // additive blending, max level 45
  259. textures/sky/sunlight03
  260. {
  261.     surfaceparm nolightmap
  262.     surfaceparm nonsolid
  263.     surfaceparm trans
  264.     surfaceparm detail
  265.     qer_editorimage textures/effects/sunlight04.tga
  266.     qer_trans 0.5
  267.     {
  268.         map textures/effects/sunlight04.tga
  269.         blendFunc GL_ONE GL_ONE
  270.     }
  271. }
  272.  
  273. // DHM - Testing sky sun
  274. textures/sky/dtestsky
  275. {
  276.     surfaceparm noimpact
  277.     surfaceparm nolightmap
  278.     surfaceparm sky
  279.  
  280.     qer_editorimage textures/sky/test1.tga
  281.  
  282.     q3map_surfacelight 100
  283. //    cloudparms 512 full
  284.     skyparms - 512 -
  285.  
  286.     q3map_lightsubdivide 512
  287.     q3map_sun    1 .6 .3 30000 90 90    
  288.     {
  289.         map textures/sky/test1.tga
  290.         tcMod scale 3 2
  291.         depthWrite
  292.     }
  293.     {
  294.         map textures/sky/test_overlay.tga
  295.         blendFunc GL_ONE GL_ONE
  296.         tcMod scroll 0.03 0.03
  297.         tcMod scale 3 3
  298.     }
  299. }
  300.  
  301. textures/sky/chesssky
  302. {
  303.     portalsky
  304.     surfaceparm noimpact
  305.     surfaceparm nolightmap
  306.     surfaceparm sky
  307.     q3map_sun 0.5 0.5 0.5 1000 65 70
  308.     qer_editorimage textures/common/sky.tga
  309.     {
  310.         map $whiteimage
  311.         blendFunc GL_ZERO GL_ONE
  312.         depthWrite
  313.     }
  314. }
  315.  
  316. textures/sky/firesky
  317. {
  318.     surfaceparm noimpact
  319.     surfaceparm nolightmap
  320.     surfaceparm sky
  321.  
  322.     qer_editorimage textures/special/mcloud2.tga
  323.  
  324.     skyparms - 512 -
  325.  
  326.     {
  327.         map textures/special/mcloud5.tga
  328.         //blendfunc add
  329.         //rgbgen wave sin .5 0 0 .1
  330.         tcmod scale 5 5        
  331.         tcmod scroll .1 .1
  332.         
  333.     }
  334.     {
  335.         map textures/special/mcloud2.tga        
  336.         blendfunc add        
  337.         rgbgen wave sin .4 .2 0 .07        
  338.         tcmod scale 6 6
  339.         //tcmod turb 0 .2 0 .02    
  340.         tcmod scroll .2 .2
  341.         
  342.     }    
  343.     
  344. }